package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Comments;
import cn.wolfcode.trip.base.domain.Letter;

import java.util.List;

public interface ILetterService {


    void save(Letter Letter);
    
    void update(Letter Letter);

    void delete(Long id);

    Letter get(Long id);

    List<Letter> selectAll();

    int getLetterByState(Long userId);

    // 添加私信
    void insertLetter(Letter letter);
    // 查询所有私信
    List<Letter> getLetters(Long userId);

    // 修改私信阅读状态
    void setLetterState(int state);

    List<Letter> getDoubleLetters(Long userId, Long targetId);
}
